TMS-Client 1.0 Communication Driver

 

TMS-Client 1.0 is client driver to communicate with Management Corporation server by using protocol constituted at Environmental Management Corporation as standard.

 

1. Read settings

 

<Figure 1> is read setting example of TMS-Client 1.0 communication driver.

<Figure 1> Read setting example of TMS-Client 1.0 driver

Device setting of <Figure 1> input Connection type(TCP/IP), IP address of PLC(192.168.1.12), TCP service port(16002) respectively.

Also, you can enter the workplace code, dewatering outlets code, whether to include STX, ETX code when calculate BCC (1 : Include, 0 : Not include, Default = 1)and memory address(Default = 9000) to save password transferred from server at Option part, by classifying as comma(,).

 

TMS-Client 1.0 driver read schedule

 

You just write read schedule of TMS-Client 1.0 communication driver written as single line.

 

Read schedule example)

READ,

 

If you click the icon  in protocol option part at <Figure 1>, you can see the dialog box such as <Figure 2>. you can also set read schedule by using this part.

<Figure 2> Example of TMS-Client 1.0 communication driver's measurement items setting dialog box

Also, you can set the workplace code, dewatering outlets code, whether to include STX, ETX code when calculate BCC and memory address to save password transferred from server at <Figure 2>.

You can set read schedule by using , , button and listbox of <Figure 2>.

<Figure 3> Example of TMS-Client 1.0 communication driver's measurement items Add/Edit dialog box

<Figure 3> is shown when add or edit measurement items data to send to server at <Figure 2> dialog box.

If you select  button of <Figure 2>, dialog box of <Figure 4> is shown and you can set string tag for sending analog input tag of water sampling device status(temp, water sampling type, status information,  position of water sampling bottle) and additional information.

<Figure 4> Example for water sampling and additional information dialog box of TMS-Client 1.0 communication driver

<Table 1> is response and process method about command of Management Corporation server, and <Table 2> is confirmation and process method of change/execute command sent from server.

Command Command Contents Response Data

Processing Method for Driver

DATA Data transfer request 5 minute data, time data within 2 hours

It is sending structure by calculating saved minute, hour data automatically.

RDAT Instantaneous data request Instantaneous data

Send current value to server.

DUMP Past data request 5 minute data,
Time data

It is sending structure by calculating minute, hour data within requested range, automatically.

RCHK Calibration execute Send command receipt notification code to server

Confirm the reception of calibration execute commands by setting WORD memory value of password save addr + 1 as 1.

It needs to execute calibration commands really by using script.

CCHK Calibration value search Send calibration value information to server

Send slope, section, zero point, span, factor, offset and current value of measurement range tag which are set at measurement items to server.

SAMP Auto water sampling device control commands Send command receipt notification code to server

Confirm the reception of water sampling execute commands by setting WORD memory value of password save addr + 2 as 1.

It needs to execute water sampling commands really by using script.

Auto water sampling device control status request Sned water sampling device information to server

Send Temp, water sampling type(0 : Local, 1 : Remote), status information, water sampling bottle position and current value of additional information(string 50 byte) tag which are set at Water sampling, additional information tag settings to server.

SETT Time change request Send time change completion code to server

Change current time of computer as time transferred from server.

SETP Password change request Send password change completion code to server

Set WORD memory address of password save addr as 1, and save the received password to STRING memory address.

It needs to change administrator password as password received by script.

RSET Data collection device initialization Send command receipt notification code to server

Confirm the reception of initialization commands of data collection device by setting WORD memory value of password save addr + 3 as 1.

It needs to execute initialization commands really by using script.

INFO Additional information request Send additional information to server

Send current value of additional information(string 50 byte) tag which is set at water sampling and additional information tag settings, to server.

<Table 1> Response and process method for command of Management Corporation
Memory Address

Save Contents of Communication Memory

Process Method of LocalMain
Save addr of Password + 0

WORD memory : Set as 1

STRING memory : Save password sent from server

1) Keep checking whether WORD value of password save addr + 0 is 1.

2) If value is changed to 1, change LocalMain password as STRING memory password.

3) Set WORD value of password save address as 0.

Save addr of Password + 1 WORD memory : Set as 1

1) Keep checking whether WORD value of password save addr + 1 is 1.

2) If value is changed to 1, execute calibration commands.

3) Set WORD value of password save address + 1 as 0.

Save addr of Password + 2

1) Keep checking whether WORD value of password save addr + 2 is 1.

2) If value is changed to 1, execute water sampling commands.

3) Set WORD value of password save address + 2 as 0.

Save addr of Password + 3

1) Keep checking whether WORD value of password save addr + 3 is 1.

2) If value is changed to 1, execute initialization commands of data collection device.

3) Set WORD value of password save address + 3 as 0.

<Table 2> Confirmation and process method of change/execute command sent from server
2. Writing settings

There is no writing settings because it sends data which TMS-Client 1.0 communication driver request.